package entityMapping.demo3.service;

import entityMapping.demo3.bean.AccountSetting;
import entityMapping.demo3.dao.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private BaseDao<AccountSetting> accountSettingDao;

    @Override
    public void updateAccountSetting(AccountSetting record) {
        accountSettingDao.update(record);
    }

    @Override
    public List<AccountSetting> recovery() {
        return accountSettingDao.recover(AccountSetting.class);
    }
}
